# Copyright (c) 2020 Presto Labs Pte. Ltd.
# Author: donggu

load("@nazel//:nazel_build.bzl", "nazel_cc_binary")

package(default_visibility = ["//visibility:public"])

nazel_cc_binary(
    name = "check_backflow",
    srcs = [
        "check_backflow.cc",
    ],
    deps = ["//cc/coin2"],
)

nazel_cc_binary(
    name = "dump",
    srcs = [
        "strat/dump.cc",
        "strat/feature_model.h",
    ],
    data = [
        "//:data",
    ],
    linkopts = [
        "-lhdf5",
    ],
    deps = [
        "//cc/coin2",
    ],
)

nazel_cc_binary(
    name = "strat",
    srcs = [
        "strat/feature_model.h",
        "strat/strat.cc",
    ],
    data = [
        "//:data",
    ],
    defines = [
        "_GLIBCXX_USE_CXX11_ABI=1",
    ],
    linkopts = [
        "-ltorch",
        "-lc10",
        "-ltorch_cpu",
        "-llightgbm",
    ],
    deps = [
        "//cc/coin2",
    ],
)
